package cn.hdu.liang.core.service.product;

import cn.hdu.liang.core.bean.product.Product;
import cn.hdu.liang.core.query.product.ProductQuery;
import cn.itcast.common.page.Pagination;

import java.util.List;

public interface ProductService {

    public Integer addProduct(Product product);

    public Product getProductByKey(Integer id);

    public List<Product> getProductsByKeys(List<Integer> idList);

    public Integer deleteByKey(Integer id);

    public Integer deleteByKeys(List<Integer> idList);

    public Integer updateProductByKey(Product product);

    public Pagination getProductListWithPage(ProductQuery productQuery);

    public List<Product> getProductList(ProductQuery productQuery);
}
